#include "..\..\TYPES.H"
#include "..\COMMON\PALT.H"

PALETTEENTRY tblPal1[16] = {
  {   0,   0,   0, 1 }, {  64,  64, 128, 1 },
  { 160, 160, 224, 1 }, { 160, 160, 224, 1 },
  {   0,   0,   0, 1 }, { 160, 160, 224, 1 },
  { 160, 160, 224, 1 }, {   0, 160, 224, 1 },
  { 160, 160, 224, 1 }, {   0,   0, 224, 1 },
  { 160, 160, 224, 1 }, { 160, 160, 224, 1 },
  { 160, 160, 224, 1 }, { 160, 160, 224, 1 },
  { 160, 160, 224, 1 }, { 160, 160, 224, 1 }
};
PALETTEENTRY tblPal2[16] = {
  {   0,   0,   0, 1 }, {  32,  32,  32, 1 },
  {  64,  64,  64, 1 }, { 128, 128, 128, 1 },
  {   0,   0,   0, 1 }, { 192, 192, 192, 1 },
  { 224, 224, 224, 1 }, { 224, 128,   0, 1 },
  { 160, 160, 160, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY tblPal3[16] = {
  {   0,   0,   0, 1 }, {  32,  32,  32, 1 },
  {  64,  64,  64, 1 }, { 128, 128, 128, 1 },
  {  64,  64, 128, 1 }, { 192, 192, 192, 1 },
  { 224, 224, 224, 1 }, { 160, 160, 224, 1 },
  { 160, 160, 160, 1 }, { 128, 128, 192, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  { 192, 224, 224, 1 }, { 160, 224, 224, 1 },
  { 128, 224, 224, 1 }, {  64, 224, 224, 1 }
};
PALETTEENTRY tblPal4[16] = {
  {   0,   0,   0, 1 }, { 160, 224, 224, 1 },
  { 224, 224, 224, 1 }, { 128, 224, 224, 1 },
  { 192, 224, 224, 1 }, {  64, 224, 224, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }
};
extern PALETTEENTRY* lpColorwk;

















void OEClrset(PALETTEENTRY* pPalet, unsigned short nNumber) { /* Line 62, Address: 0x1000d90 */
  PALETTEENTRY* pColorwk;
  short i;


  pColorwk = &lpColorwk[nNumber * 16]; /* Line 67, Address: 0x1000da4 */

  for (i = 0; i < 16; ++i) { /* Line 69, Address: 0x1000dc0 */
    *pColorwk = *pPalet; /* Line 70, Address: 0x1000dcc */
    ++pColorwk; /* Line 71, Address: 0x1000df0 */
    ++pPalet; /* Line 72, Address: 0x1000df4 */
  } /* Line 73, Address: 0x1000e00 */
} /* Line 74, Address: 0x1000e20 */
